package com.xbongbong.paas.pojo.workflow.nodes.vo;

import com.xbongbong.paas.pojo.workflow.settings.vo.WorkflowOperationsVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author 吴峰
 * @date 2021/05/28 17:13
 */
@Getter
@Setter
@ToString
public class InsertRecordNodeVO implements Serializable {
    private static final long serialVersionUID = 4347251023626027844L;

    private Integer delete;

    /**
     * 1:新增一条；2：基于多条记录逐条新增记录
     */
    private Integer chooseDataSource;

    /**
     * 数据源：工作节点id
     */
    private Long workflowNodeId;
    /**
     * 数据源：表单id
     */
    private Long dataSourceFormId;
    /**
     * 数据源：saas标识
     */
    private Integer dataSourceSaasMark;
    /**
     * 数据源：业务类型
     */
    private Integer dataSourceBusinessType;

    private String dataSourceName;

    private String dataSourceFormName;


    private List<WorkflowOperationsVO> operations;

    /**
     * 触发表单的数据来源是编辑前还是编辑后；编辑前：0；编辑后：1
     */
    private Integer editedData;

    public InsertRecordNodeVO() {
    }

    public InsertRecordNodeVO(Integer editedData, Integer delete, Integer chooseDataSource, Long workflowNodeId, Long dataSourceFormId, Integer dataSourceSaasMark, Integer dataSourceBusinessType, String dataSourceName, String dataSourceFormName, List<WorkflowOperationsVO> operations) {
        this.editedData = editedData;
        this.delete = delete;
        this.chooseDataSource = chooseDataSource;
        this.workflowNodeId = workflowNodeId;
        this.dataSourceFormId = dataSourceFormId;
        this.dataSourceSaasMark = dataSourceSaasMark;
        this.dataSourceBusinessType = dataSourceBusinessType;
        this.dataSourceName = dataSourceName;
        this.dataSourceFormName = dataSourceFormName;
        this.operations = operations;
    }
}
